package com.simple.database;

class MyClass1 {  
    static {//静态块  
        System.out.println("static block ");  
    }  
    public static int addd =0;
    public static void test(){
    	System.out.println("dddd");
    }
}  
public class Main {  
  
    Class[] classArray = {  
            MyClass1.class//这样引用该类，必然需要将该类加载到虚拟机中  
    };  
    public static void main(String[] args){
//        System.out.println("hello word");  
        System.out.println(MyClass1.addd);
    }  
  
} 